//
//  FGChatUtils.h
//  FGCallKit
//
//  Created by feige on 2023/4/17.
//

#import <Foundation/Foundation.h>
#import "FGChatMessageModel.h"
#import "XMPPFramework.h"

@interface FGChatUtils : NSObject

/// 空字符串判断
+ (BOOL)isNullOrEmpty:(NSString *)str;

/// md5 加密
+ (NSString *)md5:(NSString *)str;

/// 当前时间戳（秒）
+ (NSString *)nowTimeTimestamp;

/// 随机生成{len}位字符串
+ (NSString *)fg_randomString:(NSInteger)len;

/**
 * 文件大小字符串转文件大小
 */
+ (int)fg_fileSizeForFileSizeStr:(NSString *)fileSizeStr;

/**
 * XMPPMessage转FGChatMessageModel
 */
+ (FGChatMessageModel *)messageForXMPPMessage:(XMPPMessage *)message;

@end
